﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;
using OF.Component.Model;
using OF.Utility;

namespace User.Api.Models
{
    /// <summary>
    /// 用户来源获取信息 响应结果
    /// </summary>
    public class ResponseUserSourceGet : UserSourceInfo
    {

        /// <summary>
        /// 来源媒体(1:app 2:支付宝小程序 3:微信小程序)
        /// </summary>
        [DataMember]
        public string SourceTypeText
        {
            get
            {
                string szReturn = SourceType.Switch
                    (
                        new[] { 1, 2, 3 },
                        new[] { "app", "支付宝小程序", "微信小程序" },
                        ""
                    );
                return szReturn;
            }
        }
    }

    /// <summary>
    /// 用户来源获取信息 响应结果
    /// </summary>
    public class ReqUserHeadUpdate
    {
        ///<summary>
        ///第三方标识
        ///</summary>
        public string SourceToken { get; set; }

        /// <summary>
        /// 第三方用户来源类型
        /// </summary>
        public int SourceType { get; set; }

        ///<summary>
        ///昵称
        ///</summary>
        public string SourceUserName { get; set; }

        ///<summary>
        ///头像
        ///</summary>
        public string SourceUserHead { get; set; }
    }
}